package com.example.linkedlist.bidirectional;

public class Language {
    public String name;
    public Integer num;
    public Language next;
    public Language pre;

    public Language(String name, Integer num) {
        this.name = name;
        this.num = num;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Language getNext() {
        return next;
    }

    public void setNext(Language next) {
        this.next = next;
    }

    @Override
    public String toString() {
        return "动漫信息{" +
                "动漫名称='" + name + '\'' +
                ", 动漫编号=" + num +
                '}';
    }
}
